﻿<%@ Page Language="C#" MasterPageFile="~/Common/Master/Tree.master" AutoEventWireup="true"
    Inherits="Admin_User_DeptTree" Title="无标题页" CodeBehind="DeptTree.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .frame_left .title a:hover
        {
            text-decoration: underline;
        }
    </style>  
    <link href="../../Common/Style/zTreeStyle/zTreeStyle.css" rel="stylesheet" type="text/css" />
    <script src="../../Common/Js/zTree/jquery.ztree.core-3.2.js" type="text/javascript"></script>
    <script type="text/javascript">
    
        <!--
        var setting =
        {
            data:
            {
                simpleData:
                {
                    enable: true
                },
                keep: {
                    parent: true
                }

            },
            view:
            {
                showIcon: true
            },
            callback:
            {
                onClick: function (e, nodeID, treeNode)
                {
                    var id = treeNode.encryptID;
                    parent.document.getElementById("List").contentWindow.location.href = "List.aspx?DeptID=" + id;
                }
            }
        };


        var zNodes = [
            <asp:Literal ID="lblJson" runat="server"></asp:Literal>			
	    ];

        $(document).ready(function ()
        {
            $.fn.zTree.init($("#treeDemo"), setting, zNodes);

        });
		//-->

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="frame_left">
        <div class="title">
            <asp:HyperLink ID="lnkRoot" runat="server" Target="List" hidefocus="hidefocus">所有部门</asp:HyperLink></div>
        <div id="tree" style="width: 100%; overflow: auto">
            <ul id="treeDemo" class="ztree">
            </ul>
        </div>
    </div>
</asp:Content>
